package company

import (
	"github.com/gin-gonic/gin"
	"jwgin/middleware"
)

type BaseRouter struct{}

func (s *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) (R gin.IRoutes) {
	baseRouter := Router.Group("company")
	new(Login).Routers(baseRouter)
	baseRouter.Use(middleware.Jwt())
	new(user).Routers(baseRouter)
	new(recordBean).Routers(baseRouter)
	new(ActivityTemplate).Routers(baseRouter) //活动模板
	new(Activity).Routers(baseRouter)         //活动列表
	new(ActivitySignIn).Routers(baseRouter)   //签到活动
	new(gift).Routers(baseRouter)             //礼物列表
	new(exchange).Routers(baseRouter)         //活动兑换

	new(whois).Routers(baseRouter) //系统设置
	new(link).Routers(baseRouter)
	new(resources).Routers(baseRouter)
	new(resourcesClass).Routers(baseRouter)

	new(newsClass).Routers(baseRouter)
	new(news).Routers(baseRouter)

	return baseRouter
}
